package com.site.wisdom_construction.service.iotModule;

import com.site.wisdom_construction.dao.iotModule.MonitorMessageDao;
import com.site.wisdom_construction.entity.iotModule.MonitorMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/21
 * @Description
 */
@Service
public class MonitorMessageService implements MonitorMessageDao {
    @Autowired
    private MonitorMessageDao monitorMessageDao;

    @Override
    public int insertMonitorMessage(Map map) {
        return monitorMessageDao.insertMonitorMessage(map);
    }

    @Override
    public int deleteMonitorMessage(Map map) {
        return monitorMessageDao.deleteMonitorMessage(map);
    }

    @Override
    public int updateMonitorMessage(Map map) {
        return monitorMessageDao.updateMonitorMessage(map);
    }

    @Override
    public MonitorMessage findMonitorMessageByPorjectId(Map map) {
        return monitorMessageDao.findMonitorMessageByPorjectId(map);
    }
}
